include .env

run: 
	@make build
	@$(GOBIN)/$(PJNAME)

build:
	@go build -o $(GOBIN)/$(PJNAME) $(PJNAME)

test:
	@make build
	@go test -v ./...

deploy-dev:
	@cd src/ui && npm run-script build-dev
	@cp -a src/script src/ui/dist $(GOBIN)
	@make build

deploy-prod:
	@cd src/ui && npm run-script build
	@cp -a src/script src/ui/dist $(GOBIN)
	@make build
clean:
	@rm -rf $(GOBIN)/*
